package com.guodexian.config;

/**
 * 类说明：<br>
 *
 * @author PC-31 <br>
 * 2024/12/24 18:51<br>
 * @since 1.0 <br>
 * 黄淮学院计科2201B杨蕊 <br>
 * 点击<a href="http://www.xuejiaao.com/images/qrcode.jpg"> <br>
 */
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class MyWebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{AppConfig.class,MyBatisConfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{WebConfig.class};
    }

    @Override
    protected String[] getServletMappings() {
        //配置前端控制器
        //默认Servlet，也就是没有servlet处理时，它处理
        return new String[]{"/"};
    }
}